package com.it.service.impl;

import com.it.entity.User;
import com.it.mapper.UserMapper;
import com.it.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author xuChangSong
 * @version 1.0.0
 * @ClassName StudentServiceImpl.java
 * @Description TODO
 * @createTime 2022年10月21日 17:56:00
 */
@Service("studentService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserInfoById(String id) {
        User user = userMapper.getUserInfoById(id);
        return user;
    }

    @Override
    public int userConsumption(Map<String,Object> paramMap) {
        int count = userMapper.userConsumption(paramMap);
        return count;
    }

    @Override
    public int userRefund(Map<String,Object> paramMap) {
        int count = userMapper.userRefund(paramMap);
        return count;
    }

}
